<ul class="pagination">
<? if ( $page->First != null ) { ?>
	<li class="first"><a href="<?=$page->First->Link?>">First</a></li>
<? } else { ?>
	<li class="first no_link"><span>First</span></li>
<? } ?>

<? if ( $page->Previous != null ) { ?>
	<li class="previous"><a href="<?=$page->Previous->Link?>">Back</a></li>
<? } else { ?>
	<li class="previous no_link"><span>Back</span></li>
<? } ?>

<? if ( $page->JumpPrevious != null ) { ?>
	<li class="jump_back"><a href="<?=$page->JumpPrevious->Link?>">Back <?=$page->Jump?></a></li>
<? } elseif ( $page->Jump ) { ?>
	<li class="jump_back no_link"><span>Back <?=$page->Jump?></span></li>
<? } ?>

<? if ( $page->FirstPages != null ) { ?>
	<? foreach ( $page->FirstPages as $item ) { ?>
		<li class="first_pages"><a href="<?=$item->Link?>"><?=$item->Number?></a></li>
	<? } ?>
<? } ?>

<? if ( $page->PreviousPages != null ) { ?>
	<? if ( $page->FirstPages != null ) { ?>
		<li class="first_elipsis"><span>...</span></li>
	<? } ?>
	<? foreach ( $page->PreviousPages as $item ) { ?>
		<li class="pages"><a href="<?=$item->Link?>"><?=$item->Number?></a></li>
	<? } ?>
<? } ?>

<li class="current"><span><?=$page->Current->Number?></span></li>

<? if ( $page->NextPages != null ) { ?>
	<? foreach ( $page->NextPages as $item ) { ?>
		<li class="next_pages"><a href="<?=$item->Link?>"><?=$item->Number?></a></li>
	<? } ?>
	<? if ( $page->LastPages != null ) { ?>
		<li class="last_elipsis"><span>...</span></li>
	<? } ?>
<? } ?>

<? if ( $page->LastPages != null ) { ?>
	<? foreach ( $page->LastPages as $item ) { ?>
		<li class="last_pages"><a href="<?=$item->Link?>"><?=$item->Number?></a></li>
	<? } ?>
<? } ?>

<? if ( $page->JumpNext != null ) { ?>
	<li class="jump_forward"><a href="<?=$page->JumpNext->Link?>">Forward <?=$page->Jump?></a></li>
<? } elseif ( $page->Jump ) { ?>
	<li class="jump_forward no_link"><span>Forward <?=$page->Jump?></span></li>
<? } ?>

<? if ( $page->Next != null ) { ?>
	<li class="next"><a href="<?=$page->Next->Link?>">Next</a></li>
<? } else { ?>
	<li class="next no_link"><span>Next</span></li>
<? } ?>

<? if ( $page->Last != null ) { ?>
	<li class="last"><a href="<?=$page->Last->Link?>">Last</a></li>
<? } else { ?>
	<li class="last no_link"><span>Last</span></li>
<? } ?>
</ul>
